<?php 
include("header.inc.php");
include 'auth.inc.php';
?>
<h1>Publish Documents</h1>



<?php
print 'Hello';
$directory  = '/var/www/output/';
$all_files  = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($directory));
$html_files = new RegexIterator($all_files, 's/\.[a-zA-Z]*$//');

foreach(glob('/var/www/output/*.*') as $filename){
     echo $filename;
 }


require('footer.inc.php');
?>

